/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class Location.
 *
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Location {

	/** The location id. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long locationId;
	
	/** The iso. */
	@Persistent
	private String iso;
	
	/** The local name. */
	@Persistent
	private String localName;
	
	/** The type. */
	@Persistent
	private String type;
	
	/** The in location. */
	@Persistent
	private Long inLocation;
	
	/** The geo lat. */
	@Persistent
	private double geoLat;
	
	/** The geo lng. */
	@Persistent
	private double geoLng;
	
	/** The db id. */
	@Persistent
	private String dbId;

	/**
	 * Instantiates a new location.
	 */
	public Location() {
		
	}

	/**
	 * Instantiates a new location.
	 *
	 * @param locationId the location id
	 * @param iso the iso
	 * @param localName the local name
	 * @param type the type
	 * @param inLocation the in location
	 * @param geoLat the geo lat
	 * @param geoLng the geo lng
	 * @param dbId the db id
	 */
	public Location(Long locationId, String iso, String localName, String type, Long inLocation, double geoLat, double geoLng,
			String dbId) {
		super();
		this.locationId = locationId;
		this.iso = iso;
		this.localName = localName;
		this.type = type;
		this.inLocation = inLocation;
		this.geoLat = geoLat;
		this.geoLng = geoLng;
		this.dbId = dbId;
	}

	/**
	 * Gets the location id.
	 *
	 * @return the location id
	 */
	public Long getLocationId() {
		return this.locationId;
	}

	/**
	 * Sets the location id.
	 *
	 * @param locationId the new location id
	 */
	public void setLocationId(Long locationId) {
		this.locationId = locationId;
	}

	/**
	 * Gets the iso.
	 *
	 * @return the iso
	 */
	public String getIso() {
		return this.iso;
	}

	/**
	 * Sets the iso.
	 *
	 * @param iso the new iso
	 */
	public void setIso(String iso) {
		this.iso = iso;
	}

	/**
	 * Gets the local name.
	 *
	 * @return the local name
	 */
	public String getLocalName() {
		return this.localName;
	}

	/**
	 * Sets the local name.
	 *
	 * @param localName the new local name
	 */
	public void setLocalName(String localName) {
		this.localName = localName;
	}

	/**
	 * Gets the type.
	 *
	 * @return the type
	 */
	public String getType() {
		return this.type;
	}

	/**
	 * Sets the type.
	 *
	 * @param type the new type
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * Gets the in location.
	 *
	 * @return the in location
	 */
	public Long getInLocation() {
		return this.inLocation;
	}

	/**
	 * Sets the in location.
	 *
	 * @param inLocation the new in location
	 */
	public void setInLocation(Long inLocation) {
		this.inLocation = inLocation;
	}

	/**
	 * Gets the geo lat.
	 *
	 * @return the geo lat
	 */
	public double getGeoLat() {
		return this.geoLat;
	}

	/**
	 * Sets the geo lat.
	 *
	 * @param geoLat the new geo lat
	 */
	public void setGeoLat(double geoLat) {
		this.geoLat = geoLat;
	}

	/**
	 * Gets the geo lng.
	 *
	 * @return the geo lng
	 */
	public double getGeoLng() {
		return this.geoLng;
	}

	/**
	 * Sets the geo lng.
	 *
	 * @param geoLng the new geo lng
	 */
	public void setGeoLng(double geoLng) {
		this.geoLng = geoLng;
	}

	/**
	 * Gets the db id.
	 *
	 * @return the db id
	 */
	public String getDbId() {
		return this.dbId;
	}

	/**
	 * Sets the db id.
	 *
	 * @param dbId the new db id
	 */
	public void setDbId(String dbId) {
		this.dbId = dbId;
	}

}
